<template>
    <div class="swipe-list">
      <van-swipe :autoplay="3000" >
        <template v-for="(item, index) in swipedata" :key="index">
            <van-swipe-item class="item">
              <img :src="item.url" alt="" />
            </van-swipe-item>
        </template>
      </van-swipe>
    </div>
   
</template>

<script setup>
const props=defineProps({
    swipedata:{
        type:Array,
        default:()=>[]
    }
})
</script>

<style lang="less" scoped>
 .swipe-list{
    .item{
        img{
            width: 100%;
        }
    }
 }
</style>